#ifndef __LIST_H__
#define __LIST_H__

#include <stdio.h>
#include <stdlib.h>
#include <string.h>

typedef void seqList;
typedef void ListNode;
typedef int status;

typedef struct __tag_seqlist
{
    int length;          // 长度
    int capacity;        // 最大容量
    unsigned int **node; // 指向内存空间
} seqlist_t;


typedef struct __func_seqlist
{
    seqList *(*create)(int);
    status (*destory)(seqList *);
    status (*clear)(seqList *);
    int (*length)(seqList *);
    int (*capacity)(seqList *);
    ListNode *(*get)(seqList *, int);
    status (*insert)(seqList *, ListNode *, int);
    ListNode *(*delete)(seqList *, int);
    status (*isEmpty)(seqList *);
    status (*isFull)(seqList *);
} funSeqList;



#endif
